<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css"	href="${basePath }/styles/style.css" />
		<title>首页</title>
	</head>

	<body>
		<div class="container">
			<%@include file="template/top.jsp"%>
			<!-- 导航开始 -->
			<div class="nav">
				<div class="inner">
					<ul>
						<li>
							<a href="#">ajax</a>
						</li>
						<li>
							<a href="#">ajax</a>
						</li>
						<li>
							<a href="#">ajax</a>
						</li>
						<li>
							<a href="#">ajax</a>
						</li>
						<li>
							<a href="#">ajax</a>
						</li>
						<li>
							<a href="#">ajax</a>
						</li>
						<li>
							<a href="#">ajax</a>
						</li>
						<li>
							<a href="#">ajax</a>
						</li>
					</ul>
				</div>
			</div>
			<!-- 导航结束 -->
		<!-- 头部结束 -->
		<!--   中间开始 -->
		<div class="center">
			<%@ include file="template/msg.file" %>
			<c:if test="${not empty board}">
					<div class="area">
						<!--   左边开始    -->
						<div class="size1">
							<div class="title">
								<h2>
									<a href="board.jspx?_method=list&id=${board.id }" target="_blank">${board.name }</a>
								<c:if test="${not empty sessionScope.user }">
								<a href="post.jspx?_method=newpost&boardid=${board.id }"> 发表新帖 </a>
							</c:if>
								</h2>
							</div>
							
							<div class="content">
							<c:forEach items="${board.postlist}" var="post">
								<div class="hotnew">
								<a href="post.jspx?id=${post.id }">${post.title
									}</a>
								<span class="timeauthor">${post.createTime} by
									${post.user.name }</span>
								<span class="read">${post.clickNum }阅/100回</span>
								</div>
								</c:forEach>
							</div>

							<!--    左边结束   -->
						</div>
					</div>
				</c:if>
				</div>
					<!--     中间结束   -->
			
					<%@include file="template/footer.jsp"%>
		</div>
	</body>
</html>
